local Developer = require("demo/class/Developer")
local PrintUtil = require("util/PrintUtil")
---引入
---test code -----------------------------
local developer1=Developer:new();
developer1.attr_str_name="开发李四"
developer1.attr_str_age=22
developer1.attr_str_code="A123"
developer1.attr_num_salary=22.333334444444444444444444444444444444444444444444444444444444   -----只会保留12位
--printTable(developer1,3)
--print("develop1 "..self.attr_str_name.." work test")
developer1:work();

local developer2=Developer:new();
developer2.attr_str_name="开发王五"
--print("develop2 "..self.attr_str_name.." work test")
developer2:work();
developer2:info();
developer2:meeting();

print("打印developer1个人信息")



developer1:addWork("【项目A】")
developer1:addWork("【修复bug】")
developer1:addWork(function(it) print(">>开始执行【自定义任务code】") it:code()   end) ---让他去干写代码的任务
---
developer1:addWork(function(it) print(">>开始执行【自定义任务测试】") it:test()   end) ------让他去干测试的任务
developer1:addWork(function(it) print(">>开始执行【自定义反射任务1】")    local f = loadstring("print('写hellowrold')")  f(); end )  --添加自定义任务


developer1:addWork(function(it) print(">>开始执行【自定义反射任务2】")    local f = loadstring("print('写hellowrold')") f(); end ) --添加自定义任务


developer1:addWork(
        function(it)
            print(">>自定义错误异常")
            error({code=1,msg="自定义错误异常"},1)
        end ) --添加自定义任务



developer1:addWork(
        function(it)
            print(">>自定义错误异常2")
            error(BizException(1,"业务异常"),1)
        end ) --添加自定义任务
--developer1:addWork( ) --添加自定义任务


developer1:work();
--
--developer1.attr_list_work={}
--
--
--developer1:work();